package com.ezops.poc.validations.validators.converter;

/**
 * Thrown by {@link ITypeConverter} to indicate problem in format given for
 * conversion.
 * <p>
 * Contains the format and the problem with the format.
 * 
 * @author vgaurav
 * 
 */
public class UnknownFormatException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String wrongFormat;

	public UnknownFormatException(String format, String errorMessage) {
		super(errorMessage);
		this.wrongFormat = format;
	}

	public String getWrongFormat() {
		return wrongFormat;
	}

}
